package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverSpecialRewardRuleCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverSpecialRewardRuleType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 司机特殊奖励配置规则
 * </p>
 *
 * @author Dell
 * @since 2022-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DriverSpecialRewardRule对象", description = "司机特殊奖励配置规则")
public class DriverSpecialRewardRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "类型 0:recommend_red_packet[推广抽接单红包]")
    private DriverSpecialRewardRuleCategory category;

    @ApiModelProperty(value = "规则  0:random_driver[随机司机],1:random_time[随机时间]")
    private DriverSpecialRewardRuleType ruleType;

    @ApiModelProperty(value = "司机运营区ID")
    private Long driverRegionId;

    @ApiModelProperty(value = "司机数量")
    private Integer driverCount;

    @ApiModelProperty(value = "奖励多少钱")
    private BigDecimal rewardAmount;

    @ApiModelProperty(value = "开始小时分钟")
    private String rewardDistributeStartHm;

    @ApiModelProperty(value = "结束小时分钟")
    private String rewardDistributeEndHm;

    @ApiModelProperty(value = "开关")
    private Boolean isActive;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    private Date updatedAt;


}
